import request from "@/service";

// 查询印章使用记录
export const getSealsByCondition = (params) => {
  return request({
    url: '/seal/list',
    method: 'get',
    params
  });
};

// 新增印章使用记录
export const addSeal = (data) => {
  return request({
    url: '/seal/addSeal',
    method: 'post',
    data
  });
};

// 编辑印章使用记录
export const editSeal = (data) => {
  return request({
    url: '/seal/editSeal',
    method: 'put',
    data
  });
};

// 获取印章记录详情
export const getSealById = (id) => {
  return request({
    url: `/seal/${id}`,
    method: 'get'
  });
};
